package com.example.controller;

import com.example.feginClient.ZamasuClient;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 扎马斯
 * @date: 2024年08月30日 20:27
 * @describe:
 */
@RestController
@RequestMapping("/fegin")
@Log4j2
public class FeginController {

    @Autowired
    private ZamasuClient zamasuClient;

    @GetMapping("/get")
    public String feginTest() {
        return "测试成功";
    }

    @PostMapping("/post")
    public void postTest() {
        log.info(zamasuClient.getUser(1));
    }
}
